package com.qf.controller;

import com.qf.pojo.User;
import com.qf.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Controller;

/*
 *@Description:
 *@author:刘哥
 *@Date:14:18 2022/7/9
 */
@Controller
public class UserController {
    @Autowired
    @Qualifier("userService")
    private UserService userService;
//    public void setUserService(UserService userService){
//        this.userService=userService;
//    }
    public User selectById(int id){
        return  userService.selectById(id);

    }
}
